﻿using BCCommon.FreightEnums;
using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Common.Area
{
    /// <summary>
    /// 区县请求对象模型
    /// </summary>
    public class CountyRequestDto
    {
        /// <summary>
        /// 区县县Id
        /// </summary> 
        [Display(Name = "县编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CountyCode { get; set; }

        /// <summary>
        /// 市Id
        /// </summary>
        [Display(Name = "市编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CityCode { get; set; }

        /// <summary>
        /// 区县名称
        /// </summary>
        [Display(Name = "县名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(100, ErrorMessage = "{0}长度最大为 {1} 位")]
        public string CountyName { get; set; }

        /// <summary>
        /// 是否为市区
        /// </summary>
        [Display(Name = "是否为市区")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool IsDowntown { get; set; }

        /// <summary>
        /// 到达市区距离
        /// </summary>
        [Display(Name = "到达市区距离")]
        public int ArriveCityDistance { get; set; }

        /// <summary>
        /// 区县热度
        /// </summary>
        [Display(Name = "区县热度")]
        public int CountyHeatLevel { get; set; }

        /// <summary>
        /// 区县易回货类型
        /// </summary>
        [Display(Name = "区县易回货类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public EasyBackGoodsType CountyEasyBackGoods { get; set; }

    }
}
